import { CharStreams, CommonTokenStream } from 'antlr4ts';
import { vecMathLexer } from './vecMathLexer';
import { vecMathParser } from './vecMathParser';
let input = `
x = 3+4
print x * [2, 3, 4]
`;
// Create the lexer and parser
let inputStream = CharStreams.fromString(input);
let lexer = new vecMathLexer(inputStream);
let tokenStream = new CommonTokenStream(lexer);
let parser = new vecMathParser(tokenStream);

// Parse the input, where `compilationUnit` is whatever entry point you defined
parser.prog();